﻿#ifndef BARCODEMANAGER_H
#define BARCODEMANAGER_H

#include <QDateTime>
#include "DbHelper.h"

class BarCodeManager : public QObject
{
    Q_OBJECT
public:
    BarCodeManager();

    Q_INVOKABLE bool            addBarCode(QString code);
    Q_INVOKABLE QVariantList    getBarCodeList();
    Q_INVOKABLE bool            deleteBarCode(int id);

    Q_INVOKABLE bool isValidCode(QString code);     // 检查编码是否符合规则

};

#endif // BARCODEMANAGER_H
